<template>
	<view>
		<button type="primary" style="margin: 10px;" @click="register">注册</button>
		<button type="primary" style="margin: 10px;" @click="login">登录</button>
		<button type="primary" style="margin: 10px;" @click="add_shop">添加商店</button>
		<button type="primary" style="margin: 10px;" @click="shop">商店列表</button>
		<button type="primary" style="margin: 10px;" @click="product_detail">产品详情</button>
		<button type="primary" style="margin: 10px;" @click="order">订单</button>
		<button type="primary" style="margin: 10px;" @click="payment">支付</button>
		<button type="primary" style="margin: 10px;" @click="cart">购物车</button>
		<button type="primary" style="margin: 10px;" @click="my">我的</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		methods: {
			login() {
				uni.navigateTo({
					url: "login/login"
				})
			},
			register() {
				uni.navigateTo({
					url: "login/register"
				})
			},
			add_shop() {
				uni.navigateTo({
					url: "shop/add_shop"
				})
			},
			shop() {
				uni.navigateTo({
					url: "shop/shop"
				})
			},
			my() {
				uni.navigateTo({
					url: "my/my"
				})
			},
			product_detail() {
				uni.navigateTo({
					url: "shop/product_detail"
				})
			},
			order() {
				uni.navigateTo({
					url: "shop/order"
				})
			},
			payment() {
				uni.navigateTo({
					url: "shop/payment"
				})
			},
			cart() {
				uni.navigateTo({
					url: "shop/cart"
				})
			}
		}
	}
</script>

<style lang="scss">

</style>
